import { setStorage, getStorage } from '../common/storage.js'

const VIBRATOR_KEY = 'vibratorConf'

/**
 * 获取是否震动
 * @returns
 */
export const getVibratorConf = () => {
    return getStorage(VIBRATOR_KEY)
}

/**
 * 设置震动
 */
export const setVibratorConf = (value) => {
    setStorage(VIBRATOR_KEY, value)
}